Method: TimeCalc::Diff#<=>

Defined in:
lib/time_calc/diff.rb

#<=>(other) ⇒ -1, ...

Returns:

  • (-1, 0, 1)


192
193
194
195
196
# File 'lib/time_calc/diff.rb', line 192

def <=>(other)
  return unless other.is_a?(Diff)

  exact <=> other.exact
end